import Mock from 'mockjs';

const dmall_list = Mock.mock({
  'list|20': [
    {
      'id': '@id',
      'image': '@image(200xx200, @color, @city)',
      'count': 0,
      'price': '@integer(1, 100)',
      'name': '@city'
    }
  ]
})

const banner_imgs = Mock.mock({
  'banner|5' : [
    {
      'img': '@image(375x200, @color, @city)',
      'id': '@id'
    }
  ]
})

Mock.mock('/api/initdata', dmall_list.list)

Mock.mock('/api/banner', banner_imgs.banner)